home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ccdl151s.zip / INCLUDE / CMDLINE.H < prev    next >
C/C++ Source or Header  |  1997-04-14  |  1KB  |  51 lines

  1. #ifndef _CMDLINE_H
  2. #define _CMDLINE_H
  3.  
  4. #include "utype.h"
  5. #define VMSG(ms) ms" Version %d.%02d  Copyright (c) 1994-1997 LADsoft",(VERSION)/100,(VERSION)%100
  6.  
  7. /* Directory buffer size */
  8. #define DIR_BUFFER 256
  9.  
  10. /* Directory errors */
  11. #define DIR_OK 0
  12. #define DIR_BADFORMAT 2
  13. #define DIR_INVALID 3
  14. #define DRIVE_INVALID 4
  15.  
  16. /* Mode values for ARGLIST */
  17. #define ARG_CONCATSTRING 1
  18. #define ARG_NOCONCATSTRING 2
  19. #define ARG_BOOL 3
  20. #define ARG_SWITCH 4
  21. #define ARG_SWITCHSTRING 5
  22.  
  23. /* Valid arg separators */
  24. #define ARG_SEPSWITCH '/'
  25. #define ARG_SEPFALSE '-'
  26. #define ARG_SEPTRUE '+'
  27.  
  28. /* Return values for dispatch routine */
  29. #define ARG_NEXTCHAR 1
  30. #define ARG_NEXTARG 2
  31. #define ARG_NEXTNOCAT 3
  32. #define ARG_NOMATCH 4
  33. #define ARG_NOARG 5
  34.  
  35. typedef void (*FILEFUNC)(FILE *input, FILE *output, char *fname, char *dir, int drive);
  36.  
  37. typedef struct {
  38.   char id;
  39.   uchar mode;
  40.   void (*routine)(char, char *);
  41. } ARGLIST;
  42.  
  43. #ifdef __cplusplus
  44. extern "C" {
  45. #endif
  46. #include "cmdline.p"
  47. #ifdef __cplusplus
  48. };
  49. #endif
  50.  
  51. #endif /* _CMDLINE_H */